package edu.uit.se.slgroup.construct.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import edu.uit.se.slgroup.construct.dao.UserDao;
import edu.uit.se.slgroup.construct.domain.User;

public class UserServiceImpl implements UserService{

	@Autowired
	UserDao userDao;
	
 
	public int insertUser(User user) {
		return userDao.insertUser(user);
	}

 
	public List<User> getUserList() {
		return userDao.getUserList();
	}

 
	public User getUserById(int id) {
		return userDao.getUserById(id);
	}
 
 
	public int updateUser(User user) {
		return userDao.updateUser(user);
	}
 
 
	public int deleteUser(int id) {
		return userDao.deleteUser(id);
	}

}
